from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token

from .views import UserView
from . import views


urlpatterns = [
    path('authorizations/', obtain_jwt_token),

    path('users/', UserView.as_view({
        'post': 'create'
    })),

    path('user/', views.UserInfoView.as_view()),
    path('user/password/', views.UpdatePasswordView.as_view()),
    path('users/like/<int:id>/', views.LikeView.as_view()),

]
